package cn.edu.scau.cmi.ema.service;

import java.util.List;
import java.util.Set;
import java.io.IOException;
import com.alibaba.fastjson.JSONObject;
import java.util.Map;
import org.springframework.web.bind.annotation.RequestParam;
import cn.edu.scau.cmi.ema.domain.*;
import cn.edu.scau.cmi.ema.domain.base.CmiPagination;


public interface PurchaseadditiveService {

	public Purchaseadditive savePurchaseadditive(Purchaseadditive purchaseadditive);

	public Set<Purchaseadditive> loadPurchaseadditives();

	public Set<Purchaseadditive> loadReferencePurchaseadditives(Set<Purchaseadditive> purchaseadditives);

	public Set<Purchaseadditive> loadPurchaseadditivesByIdSet(Set<Integer> purchaseadditivesId);

	public Map<String, ?> loadPurchaseadditiveObjectReferencedSet(Purchaseadditive purchaseadditive);

	public Map<String, ?> loadPurchaseadditiveClassReferencedSet(Purchaseadditive purchaseadditive);

	public void deletePurchaseadditive(Purchaseadditive purchaseadditive);

	public void deletePurchaseadditives(Set<Integer> deletePurchaseadditivesId);

	public List<Purchaseadditive> findAllPurchaseadditives(Integer startResult, Integer maxRows);

	public Purchaseadditive findPurchaseadditiveByPrimaryKey(Integer id);

	public Integer countPurchaseadditives();

	public Integer countPurchaseadditives(CmiPagination page);

	public Integer countPurchaseadditivesByName(String queryName);

	public Integer countPurchaseadditivesByDetachedCriteria(CmiPagination page);

}
